unit Settings;

interface

type
  TSettings = class
  private
    { Private Declarations }
    class function GetBlockWidth() : Integer; static;
    class function GetBlockHeight() : Integer; static;
    class function GetBorderWidth() : Integer; static;
    class function GetNetGamePort() : Integer; static;
    class function GetUDPBroadcastPort() : Integer; static;
    class function GetMultiplayerUrl() : String; static;
  public
    class property BlockWidth : Integer read GetBlockWidth;
    class property BlockHeight : Integer read GetBlockHeight;
    class property BorderWidth : Integer read GetBorderWidth;
    class property NetGamePort : Integer read GetNetGamePort;
    class property UDPBroadcasPort : Integer read GetUDPBroadcastPort;
    class property MultiplayerUrl : String read GetMultiplayerUrl;
    constructor Create;
  end;

implementation

constructor TSettings.Create;
begin
  inherited Create;
  // TODO: Add any constructor code here
end;

class function TSettings.GetBlockWidth() : Integer;
begin
  result := 60;
end;

class function TSettings.GetBlockHeight() : Integer;
begin
  result := 60;
end;

class function TSettings.GetBorderWidth() : Integer;
begin
  result := 20;
end;

class function TSettings.GetNetGamePort() : Integer;
begin
  result := 56745;
end;

class function TSettings.GetUDPBroadcastPort() : Integer;
begin
  result := 11000;
end;

class function TSettings.GetMultiplayerUrl() : String;
begin
  //result := 'http://localhost:8080/multiplayer';
  //result := 'http://toidigame.appspot.com/multiplayer';
  result := 'http://toidi.wesit.se/multiplayer.php';
end;

end.
